<?php 
require_once("includes/php/loginfuncs.php"); 
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> simpPL Editor </title> 
<link rel="stylesheet" type="text/css" href="assets/css/home.css" />
<link rel="stylesheet" type="text/css" href="assets/css/site.css" />
<link rel="stylesheet" type="text/css" href="assets/css/login_panel/slide.css" media="screen" />
<link rel="stylesheet" type="text/css" href="assets/css/ui-darkness/jquery-ui-1.8.14.custom.css" media="screen" />
<script type="text/javascript" src="assets/js/jquery-1.5.1.min.js"></script>   
<script type="text/javascript" src="assets/js/jquery-ui-1.8.14.custom.min.js"></script>   
<script src="assets/js/login_panel/slide.js" type="text/javascript"></script>
<script type="text/javascript" src="assets/js/timeago.js"></script>   
<script src="assets/js/tabs_and_mainui.js" type="text/javascript"></script>
<?php echo $script; ?>
</head>
<body>
<?php include("./includes/header.html"); ?>
<div id="SE_siteContainer"> 
    <div id="SE_body">
        <div id="tabs"> 
            <ul> 
                <li><a href="#SE_WelcomeTab"><span>Welcome</span></a></li>
                <li><a href="#SE_BuildTab"><span>Build</span></a></li>
                <li><a href="#SE_DocTab"><span>Documentation</span></a></li>
                <li><a href="#SE_AboutUsTab"><span>About Us</span></a></li>
                <li><a href="#SE_UpdateTab"><span>Updates</span></a></li>
            </ul>
            <div id="SE_WelcomeTab">
                <div class="SE_Welcome"> 
                   Welcome to the simPL editor. TODO finish this. 
                </div>  
            </div>       
            <div id="SE_BuildTab"> 
            <?php
                if($_SESSION['id']):
            ?>  
                <h2>Start New</h2> 
                     <button id="newProjectButton" class="blueBg">New Project</button>
                     <div id="dialogNewProject" title="Create a New simPL Project">
                         <div id="createErrorDiv"></div> 
			 <label class="grey" for="doc_name">Project Name</label>
			 <input class="field" type="text" name="doc_name" id="doc_name" value="" size="23" />
                    </div>
                <h2>Edit Existing</h2>
                     <div id="dialogDeleteProject" title="Are You Sure?">
                          <div class="deleteMessage">Deletion is permanent, there is no reversing this!</div>
                      </div>
                      <div id="dialogRenameProject" title="Rename this project.">
                          <div id="renameErrorDiv"></div> 
			  <label class="grey" for="doc_name">New Document Name</label>
			  <input class="field" type="text" name="new_doc_name" id="new_doc_name" value="" size="23" />
                      </div>
                   <div id="documents">
                   </div>
            <?php 
                else:
            ?>
                Please log in or register above to Build or Edit Projects. 
            <?php 
                endif; 
            ?>
            </div>       
            <div id="SE_DocTab"> 
            </div>       
            <div id="SE_AboutUsTab"> 
                This project was started in the Summer of 2011, for an independent study graduate class. The goal -- to 
                write a new programming language catered to beginning students. 

                simPL was born. 
            </div>       
            <div id="SE_UpdateTab"> 
            </div>       
        </div>
    </div> 

    <?php include("./includes/footer.html"); ?>
</div> 
</body>
</html> 
